package com.wqb.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Yhb entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_yhb", catalog = "employment")
public class Yhb implements java.io.Serializable
{
    
    // Fields    
    
    /**
     * 注释内容
     */
    private static final long serialVersionUID = -6147227584164352300L;

    private String id;
    
    private String username;
    
    private String passwd;
    
    private String email;
    
    private String yhlx;
    
    private Timestamp cjtime;
    
    
    // Constructors
    
    /** default constructor */
    public Yhb()
    {
    }
    
    /** minimal constructor */
    public Yhb(String username, String passwd, String email, String yhlx)
    {
        this.username = username;
        this.passwd = passwd;
        this.email = email;
        this.yhlx = yhlx;
    }
    
    /** full constructor */
    public Yhb(String username, String passwd, String email, String yhlx,
            Timestamp cjtime)
    {
        this.username = username;
        this.passwd = passwd;
        this.email = email;
        this.yhlx = yhlx;
        this.cjtime = cjtime;
    }
    
    // Property accessors
    @Id
    @GeneratedValue(generator = "paymentableGenerator")       
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid") 
    @Column(name = "id", unique = true, nullable = false,length=32)
    public String getId()
    {
        return this.id;
    }
    
    public void setId(String id)
    {
        this.id = id;
    }
    
    @Column(name = "username", nullable = false, length = 40)
    public String getUsername()
    {
        return this.username;
    }
    
    public void setUsername(String username)
    {
        this.username = username;
    }
    
    @Column(name = "passwd", nullable = false, length = 40)
    public String getPasswd()
    {
        return this.passwd;
    }
    
    public void setPasswd(String passwd)
    {
        this.passwd = passwd;
    }
    
    @Column(name = "email", nullable = false, length = 100)
    public String getEmail()
    {
        return this.email;
    }
    
    public void setEmail(String email)
    {
        this.email = email;
    }
    
    @Column(name = "yhlx", nullable = true, length = 2)
    public String getYhlx()
    {
        return this.yhlx;
    }
    
    public void setYhlx(String yhlx)
    {
        this.yhlx = yhlx;
    }
    
    @Column(name = "cjtime", length = 0)
    public Timestamp getCjtime()
    {
        return this.cjtime;
    }
    
    public void setCjtime(Timestamp cjtime)
    {
        this.cjtime = cjtime;
    }
    
    
}